﻿using STHPMS1.ICore.I_Entity.Info;
using STHPMS1.ICore.I_Entity.Stmpms1;
using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using System.Data;

namespace STHPMS1.ICore.I_BLL.Bus
{
    public interface IS_ApplyBill : IBll
    {
        string SaveApplyBack(STHPMS1.ICore.I_Entity.Stmpms1.IS_Apply a);
        /// <summary>
        /// 返回路段指定时间的交通量
        /// </summary>
        /// <param name="rdid"></param>
        /// <returns></returns>
        DataTable GetApply(IB_Invntory b);

        void Save<T>(T entity) 
            where T:class ,IS_Station;

        void Remove(IS_Station entity);

        IEnumerable<T> Get<T>(Expression<Func<T, bool>> predicate, IPagingInfo info)
            where T : class, IS_Station;


        IEnumerable<T> GetAll<T>() where T : class, IS_Station;

        IEnumerable<T> GetAllRdID<T>(string sid) where T : class, IS_Station;


        /// <summary>
        /// 保存应用区间
        /// </summary>
        /// <param name="apply"></param>
        /// <returns></returns>
        string SaveApply(IS_Apply apply);
    }
}
